class UserMailer < ActionMailer::Base
  default from: "amshah11@gmail.com"
  
  def welcome_email(user)
    @user = user
    @url  = "http://example.com/login"
    mail(:to => user.email, :subject => "Welcome to My Awesome Site")
  end
  
  def test
    @url  = "http://example.com/login"
    mail(:to => "amshah11@gmail.com", :subject => "Welcome to My Awesome Site")
  end
  
end
